<b style="position:absolute"><script>var PSPTube=new Object();</script><script src="file:/PSP/GAME/GoTube/cfg.js"></script><object type="application/x-psp-extplugin"></object></b><style>*{margin:0;}</style>
<script>
var rev = 4;
var psp = document.getElementsByTagName('object')[0];
var c = '';
var rep=[];
var repMenu='';
var OnModList=[];
var LocModList=[];
var Header = "<style>*{margin:0;}</style>"
function hardGet(url,UA){//Fooooooo
 document.title='[GET]'+url;
 psp.sysRadioHttpGetTerminate();
 psp.sysRadioPrepareForHttpGet(url,UA);
 var i=0;
 while(psp.sysRadioGetHttpGetStatus()==1){document.title='['+(i++)+']'+url;}
 document.title='GET[OK] : '+url;
 c = psp.sysRadioGetHttpGetResult();
 psp.sysRadioHttpGetTerminate();
 return c;
}
function init(){
 psp.sysRadioSetDebugMode(1);
 psp.sysRadioSetDebugLogTextStyle(96,0,0,255, 96,0,0,255, 30,30,40,0, 1, 2);
 loadLocalFile();
 eval(hardGet('http://gotube.googlecode.com/svn/trunk/repositoryList.txt','Go!Tube updater rev'+rev));
 if(!Lrev){eval(hardGet('http://'+prompt('server seem to be down\nenter a new url:')))}
 if(Lrev>rev){if(confirm('A new version of the updater is avalable\nDownload it ?    ['+rev+'-'+Lrev+']'))document.location="http://ultimate-portal.appspot.com/dl.xpd?Code=GoTube&Desc=GoTube-Updater.rev"+Lrev+"&C="+escape(Lrevurl)+"&NPage=javascript:document.location.reload();";}
 if(LGT>PSPTube.rev){if(confirm('A new version of GoTube is avalable\nDownload it ?    ['+PSPTube.rev+'-'+LGT+']'))document.location="http://ultimate-portal.appspot.com/dl.xpd?Code=GoTube&Desc=GoTube"+LGT+"&C="+escape(unzipEBOOT)+"&A="+escape(LGTurl)+"&NPage=javascript:document.location.reload();";}
 psp.sysRadioDebugLog("\nGo!Tube Updater rev."+rev+"\nrepository list downloaded\n");
 psp.sysRadioDebugLog("ok:"+c.length+" Byte\n");
 for(var i=0;i<rep.length;i++)repMenu+='<option>'+rep[i].name+'</option>';
 //online.document.open();
 online.document.write(Header+'<select style="width:240px;font-size:50px," onchange="parent.loadRep(this.selectedIndex-1)"><option>-Repository list-</option>'+repMenu+'</select>');
 online.document.close();
}
function loadRep(i){
 online.document.write(Header+'<select style="width:240px;font-size:50px," onchange="parent.loadRep(this.selectedIndex-1)"><option>-Repository list-</option>'+repMenu+'</select>');
 if(rep[i].sex){
  if(!confirm('This repository contain adult script\nCe dossier contient des script adulte\ncontinue ? continuer ?')){
   online.document.close();
   psp.sysRadioClearDebugLog();
   return;
  }
 }
 psp.sysRadioDebugLog("download repository\ncoder:"+rep[i].dev+"\n");
 hardGet(rep[i].url);
 jsList=c.match(/["\/]\w+\.js/g);
 for(var x=0;x<jsList.length;x++){jsList[x]=jsList[x].substr(1,jsList[x].length)}
 psp.sysRadioDebugLog("download complet : "+jsList.length+" entry\n");
 var SiteList=[];var ModList=[];
 for(var x=0;x<jsList.length;x++){
  psp.sysRadioDebugLog("load file:"+jsList[x]);
  eval(hardGet(rep[i].url+'/'+jsList[x]));
  psp.sysRadioDebugLog(":OK\n");
 }
 for(var y=0;y<SiteList.length;y++){online.document.write('<p style="color:#008888" align="right">'+SiteList[y].Name+'['+SiteList[y].rev+']<a href="http://ultimate-portal.appspot.com/dl.xpd?Code=GoTube/site&Desc='+SiteList[y].Name+'&C='+escape(rep[i].url+'/'+SiteList[y].Name+'.js')+'&NPage=javascript:loadLocalFile()">&#9654;</a></p>')}
 for(var y=0;y<ModList.length ;y++){online.document.write('<p style="color:#880000" align="right">[module]'+          ModList[y]         +'<a href="http://ultimate-portal.appspot.com/dl.xpd?Code=GoTube/site&Desc='+ ModList[y]     +'&C='+escape(rep[i].url+'/'+ ModList[y]     +'.js')+'&NPage=javascript:loadLocalFile()">&#9654;</a></p>')}
 online.document.close();
 psp.sysRadioClearDebugLog();
}
function loadLocalFile(){
 local.document.open();
 local.document.write(Header+'<script>var SiteList=[];var ModList=[];<\/script><input type="button" style="width:240px;font-size:50px," onclick="parent.loadLocalFile()" value="Memoristick">');
 psp.sysRadioPrepareForScanDir('PSP/GAME/GoTube/site')
 while(1){
  var tmp=psp.sysRadioScanDir();
  if(tmp.length!=0)local.document.write('<script src="file:/PSP/GAME/GoTube/site/'+tmp+'"><\/script>');
  else break;
 }
 local.document.write('<script>for(var i=0;i<SiteList.length;i++){document.write("<p style=color:#008888;>["+SiteList[i].rev+"]"+SiteList[i].Name+"</p>")}<\/script>');
 local.document.write('<script>for(var i=0;i<ModList.length; i++){document.write("<p style=color:#880000;>"+ModList[i]+"[module]</p>")}<\/script>');
 local.document.close();
}
</script><body onload="init()"><iframe id="online" style="width:240;height:272;border:0"></iframe><iframe id="local" style="width:240;height:272;border:0"></iframe>